package com.ss.android.article.base.feature.user.account.presenter;

import com.bytedance.retrofit2.Callback;
import com.bytedance.retrofit2.ResponseWrapper;
import com.ss.android.account.model.AccountResponseModel;
import com.ss.android.account.model.UserAuditModel;

final class b implements Callback<AccountResponseModel<UserAuditModel>> {
    private final AccountEditPresenter a;

    b(AccountEditPresenter arg1) {
        this.a = arg1;

    }

    public final void onCacheResponse(ResponseWrapper<AccountResponseModel<UserAuditModel>> response) {
        if(response.body != null && (response.body.isApiSuccess())) {
            AccountEditPresenter.a(this.a, response.body.getData());
            AccountEditPresenter.a(this.a, false);
            AccountEditPresenter.a(this.a);
        }

        this.a.c = false;
    }

    public final void onErrorResponse(Throwable throwable) {
        this.a.c = false;
    }
}

